﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Domain.Shared.Dto.Product.Category
{
    public class ProductCategoryCreateDto
    {

        public long CategoryId { get; set; }

        [JsonProperty(PropertyName = "parentId")]
        public long? ParentId { get; set; } = 0L;

        [JsonProperty(PropertyName = "categoryName")]
        [Required(ErrorMessage = "请填写分类名称")]
        public string CategoryName { get; set; } = string.Empty;

        [JsonProperty(PropertyName = "orderNum")]
        public int OrderNum { get; set; } = 0;

        public DateTime CreatedTime { get; set; } = DateTime.Now;

        public DateTime UpdatedTime { get; set; } = DateTime.Now;

        public string IsDelete { get; set; } = string.Empty;

        public string Status { get; set; } = string.Empty;

    }
}
